package com.perfect.dao;

import com.perfect.base.BaseMapper;
import com.perfect.vo.Reconciliation;
import com.perfect.vo.Shop;
import com.perfect.vo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper extends BaseMapper<Shop,Integer> {

    //通过店铺名查找
    Shop selectByShopName(String shopName);
    //通过用户名查找
    Shop selectByMemberName(String memberName);
    //通过id和店铺名查找
    Shop selectByIdAndShopName(@Param("id") Integer id, @Param("shopName") String shopName);
    //通过id和店铺名查找
    Shop selectByIdAndMember(@Param("id")Integer id, @Param("memberName")String memberName);
    //通过数组进行查找
    Integer selectByIds(Integer[] ids);


    List<Shop> selectByParam(@Param("shopName") String shopName,@Param("memberName") String memberName,@Param("str1") String str1,@Param("str2") String str2);
}